<?php

namespace App\Http\Requests\Personal\ModPassword;
use App\Http\Requests\Request;

class ModPasswordTwoRequest extends Request {
    public function authorize(){
        return true;
    }
    public function rules(){
        return [
            'password' => 'required|confirmed',
        ];
    }
    public function messages(){
        return [
            'password.required' => '新密码必须填写',
            'password.confirmed' => '确认密码和新密码必须一致',
        ];
    }
}